package com.gupao.jly521.observer;

import com.gupao.jly521.core.Event;
import com.gupao.jly521.core.EventListener;

/**
 * @author Jly
 * @date 2018/9/4  14:58
 */
public class Subject extends EventListener {

    public void add(){
        System.out.println("adddddddddddd");
        trigger(SubjectType.ADD);
    }

    public void remove(){
        System.out.println("removeeeeeeeee");
        trigger(SubjectType.REMOVE);
    }
}
